package dao;

import java.sql.*;

public class BaseConn{
	private static final String DRIVER="com.microsoft.sqlserver.jdbc.SQLServerDriver";
	 private static final String URL="jdbc:sqlserver://localhost:1433 ;DatabaseName=IsolationSystem";
	 private static final String NAME="sa";
	 private static final String PASSWORD="sa";
	 static {
	 try {
		Class.forName(DRIVER);
	} catch (ClassNotFoundException e) {
		e.printStackTrace();
	}
	 }
	 public static Connection getConn() {
		 Connection conn=null;
		 try {
			conn=DriverManager.getConnection(URL,NAME,PASSWORD);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		 return conn;
	 }
}
